package bean;

public class Angle {
    private int angle1;
    private int angle2;

    public int getFirst() { return angle1; }

    public void setFirst(int angle1) {
        if (angle1 + angle2 > 0 && angle1 + angle2 < 180) {
            this.angle1 = angle1;
        }
    }

    public int getSecond() { return angle2; }

    public void setSecond(int angle2) {
        if (angle1 + angle2 > 0 && angle1 + angle2 < 180) {
            this.angle2 = angle2;
        }
    }

    public int getThird() { return 180 - angle1 - angle2; }
}
